package com.lx.errorHanding.listener;

import org.springframework.batch.core.SkipListener;

/**
 * @author lixing
 * @date 2021/7/13 15:06
 */
public class Mylistener implements SkipListener<String,String> {
    @Override
    public void onSkipInRead(Throwable throwable) {
        System.out.println("读取时发生的异常");
    }

    @Override
    public void onSkipInWrite(String s, Throwable throwable) {
        System.out.println("写入时发生的异常");
    }

    @Override
    public void onSkipInProcess(String s, Throwable throwable) {
        System.out.println("处理时发生的异常");
    }
}
